home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 7
/
Aminet 7 - August 1995.iso
/
Aminet
/
util
/
time
/
NISClock171.readme
< prev
next >
Wrap
Text File
|
1995-07-02
|
9KB
|
203 lines
Short: Many Options. Vanishes for Prefs change.
Author: John D. Muir <John_Muir@UManitoba.Ca>
Uploader: John D. Muir <John_Muir@UManitoba.Ca>
Type: util/time
NISClock 1.71 (7.6.95)
© Copyright 1995 John Muir
Written by John Muir
___________________________________________________________________________
Introduction
NISClock is a small clock program that uses a minimum amount of CPU time
since it only updates the clock every minute (or every second if you
wish).
It can make use of Stephan Becker's screennotify.library which patches a
few intuition.library functions so that the clock will automatically close
its window if the Public screen that it inhabits is closed by another
program. If NISClock is on the Workbench screen, it will be notified of
the close and opening of the Workbench screen by IPrefs for a preferences
change or by any other program which calls CloseWorkbench(). The window
will then not open until OpenWorkbench() is called.
The tooltypes can be used to customize the position, and look of the
NISClock window to a certain extent. Other features include optional
seconds, 24-hour mode, and three output formats for the date. A single
mouse click will cause the date to be displayed, or both the date and the
time can be displayed at the same time.
___________________________________________________________________________
Requirements
- Amiga OS V37 (2.04) or greater. Uses V39 features if present.
- Optionally: screennotify.library by Stephan Becker. See 'Installation'
for more information on screennotify.library.
- NISClock must be run from the Workbench.
___________________________________________________________________________
Installation
Use the Workbench to copy NISClock into the WBStartup drawer to have the
program execute as you startup. If you have a 68020 or better, use the
CLI to delete NISClock, and rename NISClock_020 as NISClock before copying
it.
If you decide to use screennotify.library by Stephan Becker for the
enhanced features, the library must be installed in LIBS: or PROGDIR: (the
directory where NISClock is started from). Get screennofity.library from
the distribution archive on AmiNET:
/pub/aminet/util/libs/ScreenNotify10.lha
screennotify.library is also available in the latest ToolManager
distribution archive(s) which I recommend highly;
/pub/aminet/util/boot/ToolManager21?.lha
___________________________________________________________________________
Usage
NISClock will only run from the Workbench and it supports the following
tooltypes;
SECONDS - Boolean; true when the tooltype exists.
- display seconds when true.
24HOUR - Boolean
- display the time in 24 hour mode.
INTITLEBAR - Boolean
- display the time in the title bar colours, otherwise a box
is drawn on the edge of the window to match the depth gadget.
- NOTE: V37: Backpen = 2 (White) and FrontPen = 1 (Black).
FULLYEAR - Boolean
- display the year part as YYYY.
TIMEDATE - Boolean
- display the date and time at the same time.
LEFTEDGE - Numeric; eg: LEFTEDGE=400
- the value represents the left edge of the NISClock window.
- -1 for default position.
- the window cannot be positioned with the mouse, so make good use
of the file notificaiton on NISClock.info! :)
DATEFORMAT - Enumerated; eg: DATEFORMAT=DDMMYY
- display the date in the requested format;
DATEFORMAT = DDMMYY (default), MMDDYY or YYMMDD.
JUSTIFICATION - Enumerated
- display the time and/or date with justification;
JUSTIFICATION = CENTER, RIGHT, LEFT, or NONE.
- NONE means RIGHT when INTITLEBAR is true, and CENTER otherwise.
NISClock will automatically update itself if the icon tooltypes are
changed.
A mouse click on the NISClock window will cause the date to be displayed
unless TIMEDATE is true. Additional Clicking will toggle between Time and
Date. The Time will automatically reappear after 4 seconds.
To QUIT NISClock, simply run the program again.
NISClock WILL NOT RUN from the CLI.
___________________________________________________________________________
Comments? Talk to me!
EMail: John D. Muir <John_Muir@UManitoba.Ca>
or John Derek Muir <ummuir05@cc.umanitoba.ca>
Snail Mail:
John Muir
3-152 Guigues Ave.
Ottawa, ON
K1N 5H9
CANADA
___________________________________________________________________________
History
0.99 - Released to IRC for testing. Tested on OS2.x and OS3.x.
1.0 - Released to AmiNET. 68000 version compiled... (oops! :)
1.1 - Now displays the date with a mouse click on the Window.
- Date disappears after 5 seconds.
- Fixed a few bugs.
1.2 - Reduced Code Size.
- Date disappears after 4 seconds now.
- Date is displayed in standard DD.MM.YY, 0s removed.
1.2a - BUGFIX: 10 o'clock now shows the 1...
1.3 - Added the tooltypes; SECONDS, 24HOUR, INTITLEBAR
- INTITLEBAR requires intuition.library >= V39.
1.4 - Added the DATEFORMAT tooltype. See "Usage" for more.
- INTITLEBAR no longer requires V39. Pens 1 and 2 are used as
foreground and background respectively.
1.5 - JUSTIFICATION tooltype added. (NONE, LEFT, RIGHT, or CENTER)
RIGHT is the default for INTITLBAR=1, while CENTER is the default
for INTITLEBAR=0.
- FULLYEAR causes YYYY to be displayed instead of YY.
- TIMEDATE causes the time and the date to be displayed at the same
time.
- 68030 Compilation included.
- The icon is a NewIcons icon. Thanks to Gavin Hamil.
1.51 - Small Code optimizations -> 76 byte reduction.
1.60 - Oops... I forgot that the revision number is not decimal..
- You can now position the window using the LEFTEDGE tooltype.
- Reworked the USAGE section of the .readme file.
- Including an '020 compilation instead of '030 since they are the
same size.
1.61 - Size optimizations. '020 version is now under 4k!!
1.62 - BUGFIX: Now the program does not try to reopen its window 5
seconds after being notified of a Closed Workbench. Although
NISClock opens on the Default public screen, it is a good idea to
make it run on the Workbench screen, because otherwise it may
cause problems with other programs such as Directory Opus. Maybe
I'll implement opening on a PUBSCREEN of choice..
- BUGFIX: ToolTypes can now be turned off with icon notification
after the program has been running. (Notification worked, but you
couldn't turn off the options... ;)
- Size optimizations. Lost 112 bytes (116 for '020 version).
1.70 - No longer requires screennotify.library.
- BUGFIX: Defaults for JUSTIFICATION and DATEFMT are now set
properly if the tooltypes aren't found.
- Handles other public screens properly should you manage to get
NISClock on a screen besides Workbench. ie; NISClock will close
its window if the Public Screen is closed. Provided you are using
screennotify.library of course.
- Two spaces between Date and Time when TIMEDATE is set.
- WARNING: Do not use screennotify.library and ScreenTab at the
same time if you have windows that subscribe to
screennotify.library (NISClock) on OTHER public screens (besides
Workbench) or intuition will Dead-Lock.
1.71 - Code optimizations.
- Version string now says NISClock_020 for the '020 version.
- Rewrote some parts of this text.
- BUGFIX: Now always RectFill()s over parts of the window that are
not written to. Sometimes some characters would not be completely
removed when a new (shorter) time was written to the window.
___________________________________________________________________________
To Do - Let me know if you have a favorite or suggestions.
- PUBSCREEN of your choice. (maybe)
- Localization; time and date are displayed in the format specified
by your locale. (v2.0)
- The weekday written. <- localized. (v2.0)
- The month written. <- localized. (v2.0)
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
4420 2791 36.8% 07-Jun-95 17:15:24 NISClock
4196 2633 37.2% 07-Jun-95 17:14:00 NISClock_020
5315 2118 60.1% 07-Jun-95 17:04:08 NISClock.info
8232 3303 59.8% 08-Jun-95 19:07:34 NISClock.readme
-------- ------- ----- --------- --------
22163 10845 51.0% 09-Jun-95 12:10:56 4 files